package vip.sweet.biz.modular.user.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import vip.sweet.biz.modular.user.enums.BizUserRoleType;
import vip.sweet.biz.modular.user.enums.BizUserStatus;

import java.sql.Date;

/**
 * @author ASUS
 * @Date 2025/10/4 12:16
 * @Descripition 业务逻辑用户实体类
 */
@TableName("biz_user")
@Schema(description = "业务逻辑用户实体类")
@Builder
@Data
@AllArgsConstructor
@NoArgsConstructor
public class BizUser {
    @Schema(description = "用户ID")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;
    @Schema(description = "用户名")
    private String username;
    @Schema(description = "邮箱")
    private String email;
    @Schema(description = "手机号")
    private String phone;
    @Schema(description = "密码")
    private String password;
    @Schema(description = "头像")
    private String avatar;
    @Schema(description = "昵称")
    private String nickname;
    @Schema(description = "真实姓名")
    private String realName;
    @Schema(description = "性别")
    private String gender;
    @Schema(description = "生日")
    private Date birthday;
    @Schema(description = "角色")
    private String role;
    @Schema(description = "注册时间")
    private Date registrationDate;
    @Schema(description = "最后登录时间")
    private Date lastLoginDate;
    @Schema(description = "积分")
    private Integer points;
    @Schema(description = "等级")
    private Integer level;
    @Schema(description = "状态")
    private String status;
}
